package com.itheima.domain;
//这是一个父类preson人类;
public abstract class Person {
    private  int id;
    private  String name ;
    private  String sex  ;
    private  String birthday;
    private int age  ;
    //空参构造,有参构造,setter,getter方法;
    public Person() {
    }

    public Person(int id, String name, String sex, String birthday, int age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    //由于职业和工作有两种,一个学生,一个师  没有办法确定,所以定义成abstract方法;
    public abstract String  getType();
    public abstract String  getWork();
}
